package com.jxdinfo.hussar.cloud.module.example.dljc.basket.service;

import com.jxdinfo.hussar.cloud.module.example.dljc.basket.model.Basket;
import com.jxdinfo.hussar.cloud.module.example.dljc.basket.vo.BasketSearchVO;
import com.jxdinfo.hussar.cloud.module.example.dljc.basket.vo.BasketVO;
import com.jxdinfo.hussar.platform.core.base.apiresult.ApiResponse;
import com.jxdinfo.hussar.support.mp.base.service.HussarService;

import java.util.List;

/**
 * 吊篮表服务类
 */
public interface BasketService extends HussarService<Basket> {

    /**
     * 条件查询
     *
     * @param basketSearchVO
     * @return 查询结果
     */
    ApiResponse<List<BasketVO>> findByList(BasketSearchVO basketSearchVO);

    /**
     * 根据id查询吊篮
     *
     * @param basketSearchVO
     * @return 查询结果
     */
    ApiResponse<BasketVO> findOne(BasketSearchVO basketSearchVO);

    /**
     * 新建吊篮
     *
     * @param basketSearchVO
     * @return 查询结果
     */
    ApiResponse<String> add(BasketSearchVO basketSearchVO);

    /**
     * 修改吊篮
     *
     * @param basketSearchVO
     * @return 查询结果
     */
    ApiResponse<String> updateBasket(BasketSearchVO basketSearchVO);

    /**
     * 删除吊篮
     *
     * @param basketSearchVO
     * @return 查询结果
     */
    ApiResponse<String> deleteById(BasketSearchVO basketSearchVO);
}
